package com.lzx.adx.report.enums;

public enum ElmCovertWifiEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    register("2","2","注册"),
    firstPurchase("3","3","24饿了吗注册24小时内首购，首笔订单"),
    retain("4","5","次日留存"),

    firstPurchase2("8","3","4饿了吗注册后，在当日内首购，首笔订单"),

    ;


    private String elmCode;

    private String code;

    private String msg;


    ElmCovertWifiEventTypeEnums(String elmCode, String code, String msg) {
        this.elmCode = elmCode;
        this.code = code;
        this.msg = msg;
    }

    public String getElmCode() {
        return elmCode;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getOutCode(String elmCode){
        for (ElmCovertWifiEventTypeEnums value : ElmCovertWifiEventTypeEnums.values()) {
            if(value.getElmCode().equals(elmCode)){
                return value.getCode();
            }
        }
        return  null;
    }

}
